package com.xmx.productcenter.dao;

import com.xmx.productcenter.entity.GoodsProductEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 商品货品表
 *
 * @author fbb
 * @email boyinbing@126.com
 * @date 2021-08-11 01:24:54
 */
@Mapper
public interface GoodsProductDao extends BaseMapper<GoodsProductEntity> {
    int addStock(@Param("id") Integer id, @Param("num") Integer num);
    int reduceStock(@Param("id") Integer id, @Param("num") Integer num);
}
